package com.woniu.dao;

import com.woniu.entity.CreProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CreditProductDao {

    /*
     * 查询
     * */
    List<CreProduct> findAll();

    List<CreProduct> searchProduct(CreProduct creProduct);

    /*
     * 公共界面查询
     * */
    List<CreProduct> findAllProduct(CreProduct creProduct);

    /*
     * 新增功能
     * */
    int addProducts(CreProduct creProduct);

    /*
     * 根据id查询产品
     * */
    CreProduct findProductsById(int id);

    int updateProducts(CreProduct creProduct);

    int delProducts(int[] ids);

    Integer editOneType(@Param("enableStatus") String enableStatus, @Param("id") Integer id);

    List<CreProduct> anonymousFindAll(CreProduct creProduct);
}

